import Vue from 'vue'

import 'normalize.css/normalize.css' // A modern alternative to CSS resets
import '@/styles/iconfont.css'
// import ElementUI from 'element-ui'
// import 'element-ui/lib/theme-chalk/index.css'
// import locale from 'element-ui/lib/locale/lang/en' // lang i18n

import '@/styles/index.scss' // global css

import App from './App'
import store from './store'
import router from './router'

import '@/icons' // icon
import '@/permission' // permission control


import preview from 'vue-photo-preview'
import 'vue-photo-preview/dist/skin.css'
Vue.use(preview)
// import * as echarts from 'echarts'
// Vue.prototype.$echarts = echarts

import echarts from 'echarts'
Vue.prototype.$echarts = echarts
//导出表格方法挂载到原型上
import {exportExcel} from '@/utils/ExportExcel'

Vue.prototype.$excel = exportExcel
// set ElementUI lang to EN
// Vue.use(ElementUI, { locale })
// 如果想要中文版 element-ui，按如下方式声明
// Vue.use(ElementUI)

Vue.config.productionTip = false
// const isDebug_mode = process.env.NODE_ENV !== 'production';
// Vue.config.debug = true;
Vue.config.devtools = true;
// Vue.config.productionTip = isDebug_mode;
import {
  setEnv,
} from 'menucontrol'

setEnv(process.env.VUE_APP_ADMIN_ENV)


new Vue({
  el: '#app',
  router,
  store,
  render: h => h(App)
})
